
package org.springdata.chap1.datatest;

import org.springdata.chap1.dao.JDBCDAO;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

 
public class Demodata {

 
	public static void main(String[] args) {
 
ApplicationContext context=new ClassPathXmlApplicationContext("Spring.xml");


JDBCDAO dao=context.getBean("JDBCDAO",JDBCDAO.class);

//dao.setcircle(3, "cisss");
//System.out.println(dao.getCirclename(3));
System.out.println(dao.getCircleforid(3).getName());
	}

}
